

<template lang="">
    <div class="A">
        A组件
    </div>
</template>

<script lang="ts" setup>
import { useAttrs } from 'vue';
let attr = useAttrs() // 获取父组件传过来的所有参数
console.log(attr)


</script>



<style lang="less">
    .A{
        width: 200px;
        height: 200px;
        border: 1px solid #ccc;
    }
</style>